package com.myworkbench.workbench.application;

import com.myworkbench.workbench.domain.entity.role.RoleId;
import com.myworkbench.workbench.domain.entity.user.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface SecurityAccessApplication {
    /**
     *  用户查询
     * @param realName
     * @param roleId
     * @param pageRequest
     * @return
     */
    Page<User> findUsersPage(String realName, RoleId roleId, PageRequest pageRequest);

    /**
     *  查询所有有效的用户
     * @return
     */
    List<User> findAllUsers();


}
